public class Test {
    public static void main(String[] args) {
        Integer a = 100;
        Integer b = 100;
        System.out.println(a==b);
        Integer c = 200;
        Integer d = 200;
        System.out.println(c==d);
    }
    public static void main2(String[] args) {
        Integer val1 = 10;
        int a = val1;//拆箱-》引用类型拆箱为基本数据类型
        System.out.println(a);
        Double val2 = Double.valueOf(a);//将整型变量a拆箱为双浮点类型
        System.out.println(val2);
    }
    public static void main1(String[] args) {
        int a = 10;
        //Integer val = a;//自动装箱
        Integer val = Integer.valueOf(a);//显示装箱
        Integer val2 = new Integer(a);//显示装箱
        System.out.println(val);
    }
}
